﻿using Nop.Plugin.Misc.Reservations.Models;
using System.Data.Entity.ModelConfiguration;

namespace Nop.Plugin.Misc.Reservations.Data 
{
    public class ReservationMap : EntityTypeConfiguration<Reservation> 
    {
        public ReservationMap() 
        {
            ToTable("Reservation");
            HasKey(m => m.Id);
            Property(m => m.ReserveDate);
            Property(m => m.Duration);
            Property(m => m.CustomerID);
            Property(m => m.ProductID);
            Property(m => m.TableIndex);
            Property(m => m.NumberPersons);
            Property(m => m.NotificationType);
            Property(m => m.NotificationTime);
            Property(m => m.NotificationEmailAddress);
            Property(m => m.NotificationSMSAddress);
            Property(m => m.SMSCarrier);
            Property(m => m.Status);
            Property(m => m.OrderGuid);
            Property(m => m.StoreID);
            Property(m => m.Deleted);
            Property(m => m.Comments);
        }
    }
}
